package com.znufe.exam.viewmodel.h5;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class H5ExamPaperEditRequestVM {

    @ApiModelProperty(name = "id" , value = "*****")
    private Integer id;

    // 培训项目不用
    //@NotNull
    @ApiModelProperty(name = "level" , value = "级别")
    private Integer level;

    //@NotNull
    @ApiModelProperty(name = "subjectId" , value = "学科")
    private Integer subjectId;

    @NotNull
    @ApiModelProperty(name = "paperType" , value = "试卷类型：( 0课堂互动（临时试卷）1正式考试  2班级试卷 3.时段试卷 4.推送试卷)")
    private Integer paperType;
    //@NotBlank
    @ApiModelProperty(name = "name" , value = "试卷名称")
    private String name;
    @NotNull
    @ApiModelProperty(name = "suggestTime" , value = "建议时长（分钟）")
    private Integer suggestTime;

    @ApiModelProperty(name = "limitDateTime" , value = "截止日期时间")
    private List<String> limitDateTime;

    @Size(min = 1,message = "请添加试卷标题")
    @Valid
    @ApiModelProperty(name = "titleItems" , value = "试卷标题")
    private List<H5ExamPaperTitleItemVM> titleItems;

    //private String score;
    @ApiModelProperty(name = "score" , value = "分数")
    private Integer score;
}
